package cn.wolfcode.p2p.mgrsite.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.wolfcode.p2p.base.query.IpLogQueryObject;
import cn.wolfcode.p2p.base.service.IIpLogService;

/**
 * 后台登录日志控制器
 * 
 * @author wolfcode
 *
 */
@Controller
public class IpLogController {

	@Autowired
	private IIpLogService logService;

	/**
	 * 登录日志列表
	 * 
	 * @param qo
	 * @param model
	 * @return
	 */
	@RequestMapping("ipLog")
	public String iplogList(@ModelAttribute("qo") IpLogQueryObject qo, Model model) {
		model.addAttribute("pageResult", this.logService.queryPage(qo));
		return "ipLog/list";
	}

}
